package net.simapro.connector.model;

import com4j.Com4jObject;
import com4j.EventCookie;

import net.simapro.connector.ISimaProAnalyseResult;

public class AnalyseResultDescriptor {

	private double amount;
	
	private String indicatorName;
	
	private String mainCompartmentName;
	
	private String subCompartmentName;
	
	private String unitName;
	
	public double amount() {		
		return amount;
	}

	public void amount(double value) {
		this.amount = value;		
	}

	public String indicatorName() {		
		return indicatorName;
	}
	
	public void indicatorName(String value) {
		this.indicatorName = value;		
	}

	public String mainCompartmentName() {		
		return mainCompartmentName;
	}

	public void mainCompartmentName(String value) {
		this.mainCompartmentName = value;		
	}

	public String subCompartmentName() {		
		return subCompartmentName;
	}

	public void subCompartmentName(String value) {
		this.subCompartmentName = value;		
	}

	public String unitName() {		
		return unitName;
	}

	public void unitName(String value) {
		this.unitName = value;		
	}	

	public static AnalyseResultDescriptor createDescriptor(ISimaProAnalyseResult value) {
		AnalyseResultDescriptor d = null;
		if(value != null) {
			d = new AnalyseResultDescriptor();
			d.amount = value.amount();
			d.indicatorName = value.indicatorName();
			d.mainCompartmentName = value.mainCompartmentName();
			d.subCompartmentName = value.subCompartmentName();
			d.unitName = value.unitName();
		}
		return d;
	}
	
}
